package PMIRPConstDefs;
/**
 * Generated from IDL enum "JobStatus".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class JobStatus
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _SCHEDULED = 0;
	public static final JobStatus SCHEDULED = new JobStatus(_SCHEDULED);
	public static final int _ACTIVE = 1;
	public static final JobStatus ACTIVE = new JobStatus(_ACTIVE);
	public static final int _SUSPENDED = 2;
	public static final JobStatus SUSPENDED = new JobStatus(_SUSPENDED);
	public static final int _STOPPED = 3;
	public static final JobStatus STOPPED = new JobStatus(_STOPPED);
	public int value()
	{
		return value;
	}
	public static JobStatus from_int(int value)
	{
		switch (value) {
			case _SCHEDULED: return SCHEDULED;
			case _ACTIVE: return ACTIVE;
			case _SUSPENDED: return SUSPENDED;
			case _STOPPED: return STOPPED;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _SCHEDULED: return "SCHEDULED";
			case _ACTIVE: return "ACTIVE";
			case _SUSPENDED: return "SUSPENDED";
			case _STOPPED: return "STOPPED";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected JobStatus(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
